<?php

namespace app\common\validate;

use think\Validate;

class CarCate extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
		'cate_name' => 'require',
		'type' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
		'cate_name.require' =>  '类别名称不能为空',
	    'type.require' => '请选择类型'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['cate_name','type'],
        'edit' => ['cate_name','type'],
    ];
    
}
